package edu.dgut.bbssystem.mapper;

import com.github.pagehelper.Page;
import edu.dgut.bbssystem.pojo.Post;

import java.util.List;

public interface PostMapper {
    int deleteByPrimaryKey(Integer postId);

    int insert(Post record);

    int insertSelective(Post record);

    Post selectByPrimaryKey(Integer postId);

    int updateByPrimaryKeySelective(Post record);

    int updateByPrimaryKey(Post record);

    Page<Post> selectByAll(Post post);

    Page<Post> getAll();
}